package com.lvtongka.app.dialog

import android.content.Context
import android.view.View
import com.lvtongka.app.base.BaseDialog
import com.lvtongka.app.databinding.DialogSureCancelBinding

class DialogSureCancel(context: Context) : BaseDialog(context) {
    var binding: DialogSureCancelBinding = DialogSureCancelBinding.inflate(layoutInflater)

    init {
        setContentView(binding.root)
    }

    fun setTitle(title: String?) {
        binding.tvTitle.text = title
    }

    fun setContent(content: String?) {
        binding.tvContent.text = content
    }

    fun setCancel(strCancel: String?) {
        binding.tvCancel.text = strCancel
    }

    fun setSure(strSure: String?) {
        binding.tvSure.text = strSure
    }

    fun setSureListener(sureListener: View.OnClickListener?) {
        binding.tvSure.setOnClickListener(sureListener)
    }

    fun setCancelListener(cancelListener: View.OnClickListener?) {
        binding.tvCancel.setOnClickListener(cancelListener)
    }
}